<!--社区列表-->
<template>
    <div>
            <el-row :gutter="20" class="yx_el_row">
            </el-row>
            <el-table class="yx_table" border :data="volunteersignlist">
                <el-table-column prop="index" label="序号" width="100">
                </el-table-column>
                <el-table-column prop="service_name" label="报名项目" width="180">
                </el-table-column>
                <el-table-column prop="realname" label="姓名" width="180">
                </el-table-column>
                <el-table-column prop="phone" label="手机号" width="180">
                </el-table-column>
                <el-table-column prop="remark" label="意向说明">
                </el-table-column>
            </el-table>
            <Pagination :total_count="total_count" :getList="getList"></Pagination>
    </div>
</template>

<script>
    import Pagination from '@/components/Pagination.vue';
    import { getVolunteerSignList } from '@/api/volunteer.js';
    export default {
        name: 'SignList',
        inject:['reload'],
        components:{ Pagination },
        data() {
            return {
                volunteersignlist:[],
                total_count:0
            }
        },
        methods: {
            getList(current_page,page_size){
                let send_data={
                    api_token:this.$store.getters.getSessionId,
                    current_page:current_page,
                    page_size:page_size
                }
                let that=this;
                getVolunteerSignList(send_data).then(function(response){
                   if(response.data.code==1){
                     that.volunteersignlist=response.data.list;
                     that.total_count=response.data.total_count;
                   }
                })
            }
        },
        created() {
            this.getList(1,this.$store.state.default_page_size);
        }
    }
</script>

<style>
     @import url('../../../assets/css/table.css');
</style>
